##### My (demuredemeanor) bashrc sub source install check script
# Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{}}};
# https://notabug.org/demure/dotfiles/
# legacy repo http://github.com/demure/dotfiles
# vim:set syntax=sh:

## NOTE: not using ',' as I want to be able to:
# $(sudo aptitude install $MISSING_PROGRAMS)
# or more reasonably:
# $(for i in $MISSING_PROGRAMS; do sudo aptitude install $i; done)

MISSING_CLI=""
MISSING_GUI=""

### CLI ### {{{
CLI_LIST=(docker pinfo qmv vim w3m mutt tmux ncdu pass stow notmuch msmtp \
offlineimap urlview htop aircrack-ng mosh nmap sshuttle fusermount exfatfsck \
qemu-io pianobar cacaview conky scanmem hexcurse lsof pidof apt-listbugs \
pinentry-curses pinentry-tty ranger rfkill sshfs tree unar wget iotop parted \
caff fail2ban-client wicd-curses rsync weechat diff file find gpg gpg2 mc \
lnav cheat dfc lemonbar newsboat task redshift xdotool git clamscan iftop \
wireshark aptitude hwmon bc entr gpm tlp sfill vit curl lshw parallel minicom \
khal scdaemon grep less cmus mpv tmuxinator iw goobook dmidecode gawk bvi \
pandoc djmount terminal_velocity openvpn resolvconf borg iptraf-ng make acpi \
termdown cgdb jq)

for i in "${CLI_LIST[@]}"; do
    if [[ ! $(command -v ${i}) ]]; then
        MISSING_CLI+="${i} "
    fi
done
### End CLI ### }}}

### GUI ### {{{
GUI_LIST=(rofi mcomix zathura feh scrot calibre i3lock xnest xpra xbacklight \
spacefm libreoffice chromium gparted xss-lock urxvt zeal i3 font-manager gimp \
baobab gvim nitrogen touchegg unclutter autorandr srandrd neato compton \
notify-send qtpass youtube-dl screenkey inkscape qutebrowser clipster xcalib \
pinentry-gtk2 sgt-signpost)

for i in "${GUI_LIST[@]}"; do
    if [[ ! $(command -v ${i}) ]]; then
        MISSING_GUI+="${i} "
    fi
done
### End GUI ### }}}

### Font ### {{{

### End Font ### }}}
